<template>
  <div>
    <van-nav-bar title="首页"></van-nav-bar>
    <div class="container">
      <h2 class="block__title">入库</h2>
      <van-button type="info" block class="btn_radius" @click="handleClick">
        入园登记
      </van-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeIndex",
  data() {
    return {
      userInfo: {},
    };
  },
  mounted() {
    this.getUserInfo();
  },
  methods: {
    getUserInfo() {
      this.$http.get("/mock/userInfo").then((res) => {
        console.log(res);
      });
    },
    handleClick() {
      this.$router.push({ name: "RegistrationIndex" });
    },
    register() {
      this.$router.push({ name: "RegisteredIndex" });
    },
  },
};
</script>

<style lang="scss" scoped>
</style>